package com.t.bricks.bussiness.db.entity.ordershistory.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.t.bricks.annotation.DataInfo;

/**
 * 历史订单'OrdersHistory'表实体类
 * 警告:非数据库字段禁止在此添加,应该创建扩展实体中添加
 * @author HuangXinBian
 */
@ApiModel("历史订单OrdersHistory")
@DataInfo(sDbName="BricksMall", sTableName="OrdersHistory")
public class OrdersHistoryBase implements Serializable {

	private static final long serialVersionUID = 1L;// 使用rmi时需修改

	/**
	 * 记录编号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sId", sComment="记录编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=true, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=0 )
	@ApiModelProperty(value="记录编号", example="", position=0)
	//[end]
	protected String sId;

	/**
	 * 单号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sSequence", sComment="单号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=1 )
	@ApiModelProperty(value="单号", example="", position=1)
	//[end]
	protected String sSequence;

	/**
	 * 顾客账号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sCustomerId", sComment="顾客账号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=2 )
	@ApiModelProperty(value="顾客账号", example="", position=2)
	//[end]
	protected String sCustomerId;

	/**
	 * 顾客电话
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sCustomerPhone", sComment="顾客电话", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=20, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=3 )
	@ApiModelProperty(value="顾客电话", example="", position=3)
	//[end]
	protected String sCustomerPhone;

	/**
	 * 收货地址
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sCustomerAddress", sComment="收货地址", isDbField=true, sDbFileType="varchar",
		sDefaultData="自提", isExtra=false, iskey=false, isNull=false,
		iMaxLength=200, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=4 )
	@ApiModelProperty(value="收货地址", example="自提", position=4)
	//[end]
	protected String sCustomerAddress;
	
	/**
	 * 总金额
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="mMoney", sComment="总金额", isDbField=true, sDbFileType="decimal",
		sDefaultData="0.00", isExtra=false, iskey=false, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=6, iDecimalLength=2, iIndex=5 )
	@ApiModelProperty(value="总金额", example="0.00", position=5)
	//[end]
	protected BigDecimal mMoney;
	
	/**
	 * 支付金额
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="mMoneyPay", sComment="支付金额", isDbField=true, sDbFileType="decimal",
		sDefaultData="0.00", isExtra=false, iskey=false, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=6, iDecimalLength=2, iIndex=6 )
	@ApiModelProperty(value="支付金额", example="0.00", position=6)
	//[end]
	protected BigDecimal mMoneyPay;

	/**
	 * 充值订单号(Recharge.sOrderNo)
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sRechargeNo", sComment="充值订单号(Recharge.sOrderNo)", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=64, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=7 )
	@ApiModelProperty(value="充值订单号(Recharge.sOrderNo)", example="", position=7)
	//[end]
	protected String sRechargeNo;
	
	/**
	 * 支付优惠卷
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="mCouponPay", sComment="支付优惠卷", isDbField=true, sDbFileType="decimal",
		sDefaultData="0.00", isExtra=false, iskey=false, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=6, iDecimalLength=2, iIndex=8 )
	@ApiModelProperty(value="支付优惠卷", example="0.00", position=8)
	//[end]
	protected BigDecimal mCouponPay;

	/**
	 * 支付积分
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="iTallyPay", sComment="支付积分", isDbField=true, sDbFileType="int",
		sDefaultData="0", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=9 )
	@ApiModelProperty(value="支付积分", example="0", position=9)
	//[end]
	protected Integer iTallyPay;

	/**
	 * 赠送积分
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="iTallyLargess", sComment="赠送积分", isDbField=true, sDbFileType="int",
		sDefaultData="0", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=10 )
	@ApiModelProperty(value="赠送积分", example="0", position=10)
	//[end]
	protected Integer iTallyLargess;
	
	/**
	 * 运费
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="mFreight", sComment="运费", isDbField=true, sDbFileType="decimal",
		sDefaultData="0.00", isExtra=false, iskey=false, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=6, iDecimalLength=2, iIndex=11 )
	@ApiModelProperty(value="运费", example="0.00", position=11)
	//[end]
	protected BigDecimal mFreight;

	/**
	 * 付款方式(0:其它;1:现金;2:支付宝;3微信;4:银行转账;5:赊账:6馈赠)
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="iPay", sComment="付款方式(0:其它;1:现金;2:支付宝;3微信;4:银行转账;5:赊账:6馈赠)", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=12 )
	@ApiModelProperty(value="付款方式(0:其它;1:现金;2:支付宝;3微信;4:银行转账;5:赊账:6馈赠)", example="1", position=12)
	//[end]
	protected Integer iPay;

	/**
	 * 付款时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="dPay", sComment="付款时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=13 )
	@ApiModelProperty(value="付款时间", example="", position=13)
	//[end]
	protected Date dPay;

	/**
	 * 发票号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sReceipt", sComment="发票号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=14 )
	@ApiModelProperty(value="发票号", example="", position=14)
	//[end]
	protected String sReceipt;

	/**
	 * 发票内容
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sReceiptContent", sComment="发票内容", isDbField=true, sDbFileType="longtext",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=15 )
	@ApiModelProperty(value="发票内容", example="", position=15)
	//[end]
	protected String sReceiptContent;

	/**
	 * 明细
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sDetail", sComment="明细", isDbField=true, sDbFileType="longtext",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=16 )
	@ApiModelProperty(value="明细", example="", position=16)
	//[end]
	protected String sDetail;

	/**
	 * 销售员编号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sSalesmanId", sComment="销售员编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=17 )
	@ApiModelProperty(value="销售员编号", example="", position=17)
	//[end]
	protected String sSalesmanId;

	/**
	 * 销售员
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sSalesman", sComment="销售员", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=18 )
	@ApiModelProperty(value="销售员", example="", position=18)
	//[end]
	protected String sSalesman;

	/**
	 * 销售时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="dSalesDate", sComment="销售时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=19 )
	@ApiModelProperty(value="销售时间", example="", position=19)
	//[end]
	protected Date dSalesDate;

	/**
	 * 审核人编号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sAuditId", sComment="审核人编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=20 )
	@ApiModelProperty(value="审核人编号", example="", position=20)
	//[end]
	protected String sAuditId;

	/**
	 * 审核人
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sAudit", sComment="审核人", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=21 )
	@ApiModelProperty(value="审核人", example="", position=21)
	//[end]
	protected String sAudit;

	/**
	 * 审核时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="dAuditDate", sComment="审核时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=22 )
	@ApiModelProperty(value="审核时间", example="", position=22)
	//[end]
	protected Date dAuditDate;

	/**
	 * 送货人
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sDeliveryman", sComment="送货人", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=23 )
	@ApiModelProperty(value="送货人", example="", position=23)
	//[end]
	protected String sDeliveryman;

	/**
	 * 复审人编号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sRecheckId", sComment="复审人编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=24 )
	@ApiModelProperty(value="复审人编号", example="", position=24)
	//[end]
	protected String sRecheckId;

	/**
	 * 复审人
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sRecheck", sComment="复审人", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=25 )
	@ApiModelProperty(value="复审人", example="", position=25)
	//[end]
	protected String sRecheck;

	/**
	 * 复审时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="dRecheckDate", sComment="复审时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=26 )
	@ApiModelProperty(value="复审时间", example="", position=26)
	//[end]
	protected Date dRecheckDate;

	/**
	 * 备注
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sMemo", sComment="备注", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=200, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=27 )
	@ApiModelProperty(value="备注", example="", position=27)
	//[end]
	protected String sMemo;

	/**
	 * 创建者
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sCreator", sComment="创建者", isDbField=true, sDbFileType="varchar",
		sDefaultData="0", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=28 )
	@ApiModelProperty(value="创建者", example="0", position=28)
	//[end]
	protected String sCreator;

	/**
	 * 创建时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="dCreateDate", sComment="创建时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=29 )
	@ApiModelProperty(value="创建时间", example="", position=29)
	//[end]
	protected Date dCreateDate;

	/**
	 * 修改人
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="sModifieder", sComment="修改人", isDbField=true, sDbFileType="varchar",
		sDefaultData="0", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=30 )
	@ApiModelProperty(value="修改人", example="0", position=30)
	//[end]
	protected String sModifieder;

	/**
	 * 修改时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="dModifiedDate", sComment="修改时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=31 )
	@ApiModelProperty(value="修改时间", example="", position=31)
	//[end]
	protected Date dModifiedDate;

	/**
	 * 状态(1:下单;2:已支付;3:已出库;4:已送达;5:已签收;6:已确认;7:退货申请;8:退货审核不通过;9:退货申请通过;10:已退款;11:已审计;12:已完结)
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="iState", sComment="状态(1:下单;2:已支付;3:已出库;4:已送达;5:已签收;6:已确认;7:退货申请;8:退货审核不通过;9:退货申请通过;10:已退款;11:已审计;12:已完结)", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=32 )
	@ApiModelProperty(value="状态(1:下单;2:已支付;3:已出库;4:已送达;5:已签收;6:已确认;7:退货申请;8:退货审核不通过;9:退货申请通过;10:已退款;11:已审计;12:已完结)", example="1", position=32)
	//[end]
	protected Integer iState;

	/**
	 * 序号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="iIndex", sComment="序号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=33 )
	@ApiModelProperty(value="序号", example="1", position=33)
	//[end]
	protected Integer iIndex;

	/**
	 * 版本号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="OrdersHistory",
		sName="iVersion", sComment="版本号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=34 )
	@ApiModelProperty(value="版本号", example="1", position=34)
	//[end]
	protected Integer iVersion;

	/**
	 * 取 记录编号
	 * @return String
	 */
	public String getsId() {
		return sId;
	}

	/**
	 * 设置记录编号
	 * @param sId
	 */
	public void setsId(String sId) {
		this.sId = sId;
	}

	/**
	 * 取 单号
	 * @return String
	 */
	public String getsSequence() {
		return sSequence;
	}

	/**
	 * 设置单号
	 * @param sSequence
	 */
	public void setsSequence(String sSequence) {
		this.sSequence = sSequence;
	}

	/**
	 * 取 顾客账号
	 * @return String
	 */
	public String getsCustomerId() {
		return sCustomerId;
	}

	/**
	 * 设置顾客账号
	 * @param sCustomerId
	 */
	public void setsCustomerId(String sCustomerId) {
		this.sCustomerId = sCustomerId;
	}

	/**
	 * 取 顾客电话
	 * @return String
	 */
	public String getsCustomerPhone() {
		return sCustomerPhone;
	}

	/**
	 * 设置顾客电话
	 * @param sCustomerPhone
	 */
	public void setsCustomerPhone(String sCustomerPhone) {
		this.sCustomerPhone = sCustomerPhone;
	}

	/**
	 * 取 收货地址
	 * @return String
	 */
	public String getsCustomerAddress() {
		return sCustomerAddress;
	}

	/**
	 * 设置收货地址
	 * @param sCustomerAddress
	 */
	public void setsCustomerAddress(String sCustomerAddress) {
		this.sCustomerAddress = sCustomerAddress;
	}

	/**
	 * 取 总金额
	 * @return Long
	 */
	public BigDecimal getmMoney() {
		return mMoney;
	}

	/**
	 * 设置 总金额
	 * @param mMoney
	 */
	public void setmMoney(BigDecimal mMoney) {
		this.mMoney = mMoney;
	}

	/**
	 * 取 支付金额
	 * @return Long
	 */
	public BigDecimal getmMoneyPay() {
		return mMoneyPay;
	}

	/**
	 * 设置 支付金额
	 * @param mMoneyPay
	 */
	public void setmMoneyPay(BigDecimal mMoneyPay) {
		this.mMoneyPay = mMoneyPay;
	}

	/**
	 * 取 充值订单号(Recharge.sOrderNo)
	 * @return String
	 */
	public String getsRechargeNo() {
		return sRechargeNo;
	}

	/**
	 * 设置充值订单号(Recharge.sOrderNo)
	 * @param sRechargeNo
	 */
	public void setsRechargeNo(String sRechargeNo) {
		this.sRechargeNo = sRechargeNo;
	}

	/**
	 * 取 支付优惠卷
	 * @return Long
	 */
	public BigDecimal getmCouponPay() {
		return mCouponPay;
	}

	/**
	 * 设置 支付优惠卷
	 * @param mCouponPay
	 */
	public void setmCouponPay(BigDecimal mCouponPay) {
		this.mCouponPay = mCouponPay;
	}

	/**
	 * 取 支付积分
	 * @return Integer
	 */
	public Integer getiTallyPay() {
		return iTallyPay;
	}

	/**
	 * 设置支付积分
	 * @param iTallyPay
	 */
	public void setiTallyPay(Integer iTallyPay) {
		this.iTallyPay = iTallyPay;
	}

	/**
	 * 取 赠送积分
	 * @return Integer
	 */
	public Integer getiTallyLargess() {
		return iTallyLargess;
	}

	/**
	 * 设置赠送积分
	 * @param iTallyLargess
	 */
	public void setiTallyLargess(Integer iTallyLargess) {
		this.iTallyLargess = iTallyLargess;
	}

	/**
	 * 取 运费
	 * @return Long
	 */
	public BigDecimal getmFreight() {
		return mFreight;
	}

	/**
	 * 设置 运费
	 * @param mFreight
	 */
	public void setmFreight(BigDecimal mFreight) {
		this.mFreight = mFreight;
	}

	/**
	 * 取 付款方式(0:其它;1:现金;2:支付宝;3微信;4:银行转账;5:赊账:6馈赠)
	 * @return Integer
	 */
	public Integer getiPay() {
		return iPay;
	}

	/**
	 * 设置付款方式(0:其它;1:现金;2:支付宝;3微信;4:银行转账;5:赊账:6馈赠)
	 * @param iPay
	 */
	public void setiPay(Integer iPay) {
		this.iPay = iPay;
	}

	/**
	 * 取 付款时间
	 * @return Date
	 */
	public Date getdPay() {
		return dPay;
	}

	/**
	 * 设置付款时间
	 * @param dPay
	 */
	public void setdPay(Date dPay) {
		this.dPay = dPay;
	}

	/**
	 * 取 发票号
	 * @return String
	 */
	public String getsReceipt() {
		return sReceipt;
	}

	/**
	 * 设置发票号
	 * @param sReceipt
	 */
	public void setsReceipt(String sReceipt) {
		this.sReceipt = sReceipt;
	}

	/**
	 * 取 发票内容
	 * @return String
	 */
	public String getsReceiptContent() {
		return sReceiptContent;
	}

	/**
	 * 设置发票内容
	 * @param sReceiptContent
	 */
	public void setsReceiptContent(String sReceiptContent) {
		this.sReceiptContent = sReceiptContent;
	}

	/**
	 * 取 明细
	 * @return String
	 */
	public String getsDetail() {
		return sDetail;
	}

	/**
	 * 设置明细
	 * @param sDetail
	 */
	public void setsDetail(String sDetail) {
		this.sDetail = sDetail;
	}

	/**
	 * 取 销售员编号
	 * @return String
	 */
	public String getsSalesmanId() {
		return sSalesmanId;
	}

	/**
	 * 设置销售员编号
	 * @param sSalesmanId
	 */
	public void setsSalesmanId(String sSalesmanId) {
		this.sSalesmanId = sSalesmanId;
	}

	/**
	 * 取 销售员
	 * @return String
	 */
	public String getsSalesman() {
		return sSalesman;
	}

	/**
	 * 设置销售员
	 * @param sSalesman
	 */
	public void setsSalesman(String sSalesman) {
		this.sSalesman = sSalesman;
	}

	/**
	 * 取 销售时间
	 * @return Date
	 */
	public Date getdSalesDate() {
		return dSalesDate;
	}

	/**
	 * 设置销售时间
	 * @param dSalesDate
	 */
	public void setdSalesDate(Date dSalesDate) {
		this.dSalesDate = dSalesDate;
	}

	/**
	 * 取 审核人编号
	 * @return String
	 */
	public String getsAuditId() {
		return sAuditId;
	}

	/**
	 * 设置审核人编号
	 * @param sAuditId
	 */
	public void setsAuditId(String sAuditId) {
		this.sAuditId = sAuditId;
	}

	/**
	 * 取 审核人
	 * @return String
	 */
	public String getsAudit() {
		return sAudit;
	}

	/**
	 * 设置审核人
	 * @param sAudit
	 */
	public void setsAudit(String sAudit) {
		this.sAudit = sAudit;
	}

	/**
	 * 取 审核时间
	 * @return Date
	 */
	public Date getdAuditDate() {
		return dAuditDate;
	}

	/**
	 * 设置审核时间
	 * @param dAuditDate
	 */
	public void setdAuditDate(Date dAuditDate) {
		this.dAuditDate = dAuditDate;
	}

	/**
	 * 取 送货人
	 * @return String
	 */
	public String getsDeliveryman() {
		return sDeliveryman;
	}

	/**
	 * 设置送货人
	 * @param sDeliveryman
	 */
	public void setsDeliveryman(String sDeliveryman) {
		this.sDeliveryman = sDeliveryman;
	}

	/**
	 * 取 复审人编号
	 * @return String
	 */
	public String getsRecheckId() {
		return sRecheckId;
	}

	/**
	 * 设置复审人编号
	 * @param sRecheckId
	 */
	public void setsRecheckId(String sRecheckId) {
		this.sRecheckId = sRecheckId;
	}

	/**
	 * 取 复审人
	 * @return String
	 */
	public String getsRecheck() {
		return sRecheck;
	}

	/**
	 * 设置复审人
	 * @param sRecheck
	 */
	public void setsRecheck(String sRecheck) {
		this.sRecheck = sRecheck;
	}

	/**
	 * 取 复审时间
	 * @return Date
	 */
	public Date getdRecheckDate() {
		return dRecheckDate;
	}

	/**
	 * 设置复审时间
	 * @param dRecheckDate
	 */
	public void setdRecheckDate(Date dRecheckDate) {
		this.dRecheckDate = dRecheckDate;
	}

	/**
	 * 取 备注
	 * @return String
	 */
	public String getsMemo() {
		return sMemo;
	}

	/**
	 * 设置备注
	 * @param sMemo
	 */
	public void setsMemo(String sMemo) {
		this.sMemo = sMemo;
	}

	/**
	 * 取 创建者
	 * @return String
	 */
	public String getsCreator() {
		return sCreator;
	}

	/**
	 * 设置创建者
	 * @param sCreator
	 */
	public void setsCreator(String sCreator) {
		this.sCreator = sCreator;
	}

	/**
	 * 取 创建时间
	 * @return Date
	 */
	public Date getdCreateDate() {
		return dCreateDate;
	}

	/**
	 * 设置创建时间
	 * @param dCreateDate
	 */
	public void setdCreateDate(Date dCreateDate) {
		this.dCreateDate = dCreateDate;
	}

	/**
	 * 取 修改人
	 * @return String
	 */
	public String getsModifieder() {
		return sModifieder;
	}

	/**
	 * 设置修改人
	 * @param sModifieder
	 */
	public void setsModifieder(String sModifieder) {
		this.sModifieder = sModifieder;
	}

	/**
	 * 取 修改时间
	 * @return Date
	 */
	public Date getdModifiedDate() {
		return dModifiedDate;
	}

	/**
	 * 设置修改时间
	 * @param dModifiedDate
	 */
	public void setdModifiedDate(Date dModifiedDate) {
		this.dModifiedDate = dModifiedDate;
	}

	/**
	 * 取 状态(1:下单;2:已支付;3:已出库;4:已送达;5:已签收;6:已确认;7:退货申请;8:退货审核不通过;9:退货申请通过;10:已退款;11:已审计;12:已完结)
	 * @return Integer
	 */
	public Integer getiState() {
		return iState;
	}

	/**
	 * 设置状态(1:下单;2:已支付;3:已出库;4:已送达;5:已签收;6:已确认;7:退货申请;8:退货审核不通过;9:退货申请通过;10:已退款;11:已审计;12:已完结)
	 * @param iState
	 */
	public void setiState(Integer iState) {
		this.iState = iState;
	}

	/**
	 * 取 序号
	 * @return Integer
	 */
	public Integer getiIndex() {
		return iIndex;
	}

	/**
	 * 设置序号
	 * @param iIndex
	 */
	public void setiIndex(Integer iIndex) {
		this.iIndex = iIndex;
	}

	/**
	 * 取 版本号
	 * @return Integer
	 */
	public Integer getiVersion() {
		return iVersion;
	}

	/**
	 * 设置版本号
	 * @param iVersion
	 */
	public void setiVersion(Integer iVersion) {
		this.iVersion = iVersion;
	}

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return OrdersHistoryBase
	 */
	public static OrdersHistoryBase copy(OrdersHistoryBase source) {
		if (null == source) {
			return null;
		}
		
		OrdersHistoryBase target = new OrdersHistoryBase();
		target.setsId(source.getsId());
		target.setsSequence(source.getsSequence());
		target.setsCustomerId(source.getsCustomerId());
		target.setsCustomerPhone(source.getsCustomerPhone());
		target.setsCustomerAddress(source.getsCustomerAddress());
		target.setmMoney(source.getmMoney());
		target.setmMoneyPay(source.getmMoneyPay());
		target.setsRechargeNo(source.getsRechargeNo());
		target.setmCouponPay(source.getmCouponPay());
		target.setiTallyPay(source.getiTallyPay());
		target.setiTallyLargess(source.getiTallyLargess());
		target.setmFreight(source.getmFreight());
		target.setiPay(source.getiPay());
		target.setdPay(source.getdPay());
		target.setsReceipt(source.getsReceipt());
		target.setsReceiptContent(source.getsReceiptContent());
		target.setsDetail(source.getsDetail());
		target.setsSalesmanId(source.getsSalesmanId());
		target.setsSalesman(source.getsSalesman());
		target.setdSalesDate(source.getdSalesDate());
		target.setsAuditId(source.getsAuditId());
		target.setsAudit(source.getsAudit());
		target.setdAuditDate(source.getdAuditDate());
		target.setsDeliveryman(source.getsDeliveryman());
		target.setsRecheckId(source.getsRecheckId());
		target.setsRecheck(source.getsRecheck());
		target.setdRecheckDate(source.getdRecheckDate());
		target.setsMemo(source.getsMemo());
		target.setsCreator(source.getsCreator());
		target.setdCreateDate(source.getdCreateDate());
		target.setsModifieder(source.getsModifieder());
		target.setdModifiedDate(source.getdModifiedDate());
		target.setiState(source.getiState());
		target.setiIndex(source.getiIndex());
		target.setiVersion(source.getiVersion());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return OrdersHistoryBase
	 */
	public OrdersHistoryBase clone() {
		return copy(this);
	}
	
}
